import request from '@/lib'

interface QueryInfo {
  pageNum: number,
  pageSize: number
}
interface QueryInfo {
  pageNum: number
  pageSize: number
  title?: string
  status?: number
  sort_id?: number
}

// 获取类型列表
const getTypes = (data: QueryInfo) => {
  return request({
    url: '/type/typeInfo',
    method: 'post',
    data
  })
}
// 获取文章列表
const getArticle = (data: QueryInfo) => {
  return request({
    url: '/article/articleInfo',
    method: 'post',
    data
  })
}

export { getTypes, getArticle}